<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <!-- <script src="./vue.esm-browser.prod.js"></script> -->
  <script src="https://unpkg.com/vue@next"></script>
  <title>Document</title>
</head>
<body>
  <div id="app">信息：{{mes}}
    <div v-for="item in list" :key="item.id" v-memo="[item.id === select]">{{item.id}}: {{item.value}}</div>
    <button @click="change">change</button>
    <button @click="change2">change2</button>
  </div>
  <script>
    const Counter = {
      data() {
        return {
          mes: "hhhh",
          list:[{
            id: 1,
            value: 'a'
          },{
            id: 2,
            value: 'b'  
          },{
            id: 3,
            value: 'c'  
          },{
            id: 4,
            value: 'd'  
          },{
            id: 5,
            value: 'e'  
          }],
          select: 0
        }
      },
      methods: {
        change(){
          console.log(this.list)
          this.list[0].value = 'aaa'
          console.log(this.list)
          this.select = 1
        },
        change2(){
          console.log(this.list)
          this.list[0].value = 'bbb'
        }
      },
    }

    Vue.createApp(Counter).mount('#app')
  </script>
</body>
</html>